from pymouse import *
from pykeyboard import *
import time

m = PyMouse()
k = PyKeyboard()

def sout():
    print("aaa")

while 1==1:
    k.tap_key('q', 1, 0.03)
    time.sleep(0.01)
    k.press_keys('W')
    time.sleep(0.1)
    k.release_key('W')
    time.sleep(0.1)